#include <stdio.h>
#include <stdlib.h>
#include "sysinfo.h"

int main(int argc, char* argv[])
{
  SYSINFO info = NULL;
  int status = 0;
  
  status = sysinfo_open(&info);
  if (status == -1) {
    printf("Error establishing sysinfo context.\n");
    return EXIT_FAILURE;
  }

  status = sysinfo_close(info);
  if (status == -1) {
    printf("Error closing sysinfo context.\n");
    return EXIT_FAILURE;
  }

  return EXIT_SUCCESS;
}
